package org.example.interpreter;

import java.util.HashMap;

/**
 * @author wangbin
 * @date 2024/4/20
 * @vesion 1.0
 */
public class SubExpression extends SymolExpression{
    public SubExpression(Expression left, Expression right) {
        super(left, right);
    }

    @Override
    public int interpreter(HashMap<String, Integer> var) {
        return super.left.interpreter(var)-super.right.interpreter(var);
    }
}
